#include <stdio.h>
#include <stdlib.h>
struct queue{
	int head;
	int tail;
	int data[100];
};
int main()
{
	struct queue q;
	q.head=1;
	q.tail=0;
	for(int i=0;i<10;i++){
		scanf("%d",&q.data[i]);
		q.tail++;
	}
	while(q.head<q.tail){
		printf("%d",q.data[q.head]);
		q.head++;
		q.data[q.tail]=q.data[q.head];
		q.head++;
		q.tail++;
	}
    return 0;
}



